package com.ffms.entity;

import java.util.Date;

public class Deposit {
    private int id;
    private String flag;
    private int money;
    private Date time;
    private FamilyMember familyMember;

    public Deposit(int id, String flag, int money, Date time, FamilyMember familyMember) {
        this.id = id;
        this.flag = flag;
        this.money = money;
        this.time = time;
        this.familyMember = familyMember;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public FamilyMember getFamilyMember() {
        return familyMember;
    }

    public void setFamilyMember(FamilyMember familyMember) {
        this.familyMember = familyMember;
    }

    @Override
    public String toString() {
        return "Deposit{" +
                "id=" + id +
                ", flag='" + flag + '\'' +
                ", money=" + money +
                ", time=" + time +
                ", familyMember=" + familyMember +
                '}';
    }
}
